package com.xiaobao.mapper;

import com.xiaobao.pojo.KaoyanInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

//考研信息
@Mapper
public interface KaoyanInfoMapper {
    //获取考研信息
    KaoyanInfo getKaoyanInfo(String id);
    //更新考研信息
    @Options(flushCache = Options.FlushCachePolicy.TRUE)  // 删除跟新时清除缓存
    boolean updateKaoyanInfo(KaoyanInfo kaoyanInfo);

    //删除考研信息
    @Options(flushCache = Options.FlushCachePolicy.TRUE)  // 删除跟新时清除缓存
    boolean deleteKaoyanInfo(String id);

    @Options(flushCache = Options.FlushCachePolicy.TRUE)  // 删除跟新时清除缓存
    boolean addDefaultKaoyanInfo(String id);
}
